<?php
include ("../includes/config_conexao.php");
$resposta = mysql_query( "select ID_CATEGORIA, concat(desc_categoria,' - ',fabricante_categoria) DESC_CATEGORIA_PECA from categoria_peca WHERE status_categoria = 'A'" );

while ( $linha = mysql_fetch_array( $resposta )) {
	$select = $ID_PECA == $linha["ID_CATEGORIA"] ? "selected" : "";
	echo "<option value=\"". $linha["ID_CATEGORIA"] . "\" $select>" . $linha["DESC_CATEGORIA_PECA"] . "</option>";
}
?>